package com.example.LifeCycle.commons;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @Description TODO
 * @Date 2024/5/15 10:58
 * @Created by houjunfeng
 */
public class Car implements InitializingBean, DisposableBean {
    public Car(){
        System.out.println("创建car对象");
    }
    @Override
    public void afterPropertiesSet()throws Exception{
        System.out.println("初始化car方法");
    }

    @Override
    public  void destroy() throws Exception{
        System.out.println("销毁car方法");
    }
}
